class OsnNotifyQuitGroup: OsnNotifyContent {
    var groupId = ""
    var quitMember = ""

    override init(){
        super.init()
        contentType = OsnMessageContentType.notify_quit_group
    }
    override func toJson() ->[String:Any] {
        var json = super.toJson()
        json["type"] = "notify_quit_group"
        json["groupId"] = groupId
        json["quitMember"] = quitMember
        return json
    }
    static func fromJson(_ data:[String:Any])->OsnNotifyQuitGroup{
        let c = OsnNotifyQuitGroup()
        super.fromJson(c, data)
        c.groupId = data["groupId"] as? String ?? ""
        c.quitMember = data["quitMember"] as? String ?? ""
        return c
    }
}
